package com.olinsports.system.olinsportssystem.repository;

import com.olinsports.system.olinsportssystem.model.SiteType;
import com.olinsports.system.olinsportssystem.model.StmUsr;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;

/**
 * Created by Administrator on 2017/7/23.
 */
@Mapper
@CacheConfig(cacheNames = "siteType")
public interface SiteTypeRepository {
    @Cacheable
    public List<SiteType> selectAll();

    @Cacheable
    public SiteType selectByPlaceKey(int placeKey);

}
